package com.gdust.hzx.pay.mapper;

import com.gdust.hzx.model.entity.pay.PaymentInfo;
import org.apache.ibatis.annotations.Mapper;

/**
 * ClassName: PaymentInfoMapper
 * Package: com.gdust.hzx.pay.mapper
 * Description:
 *
 * @Author syun
 * @Create 2024/12/28 10:58
 * @Version 1.0
 */
@Mapper
public interface PaymentInfoMapper {
    /**
     * 根据订单编号查询支付记录
     * @param orderNo
     * @return
     */
    PaymentInfo getByOrderNo(String orderNo);

    /**
     * //添加
     * @param paymentInfo
     */
    void save(PaymentInfo paymentInfo);

    /**
     * 更新支付信息
     * @param paymentInfo
     */
    void updatePaymentInfo(PaymentInfo paymentInfo);
}
